<div class="row">
<?if(isset($system_message))echo $system_message;?>
<?echo $this->pagination->create_links();?>

	<?if(!empty($grade_level_data)):?>
	<fieldset>
		<legend>Grade Levels</legend>
	<table class="data-table">
		<thead class="tabular-head">
		<tr>
			<th>Level Code</th>
			<th>Level Description</th>
			<th>Level Status</th>
			<th>&nbsp;</th>
		</tr>
		</thead>
		<tbody class="tabular">
		<?foreach($grade_level_data as $gld):?>
			<tr>
				<td style="text-transform:capitalize;"><?=$gld->level_code=='pk'?"PK":$gld->level_code;?></td>
				<td style="text-transform:capitalize;"><?=$gld->level_desc;?></td>
				<td style="text-transform:capitalize;"><?=$gld->level_stat;?></td>
				<td></td>
				<!--
				<?if($gld->level_stat == 'active'):?>
					<td><a href="<?=site_url('admin/destroy_gl').'/'.$gld->level_id;?>" class="confirm" title="Destroy Item?">Destroy Item</td>
				<?elseif($gld->level_stat == 'inactive'):?>
					<td><a href="<?=site_url('admin/undestroy_gl').'/'.$gld->level_id;?>" class="confirm" title="Undestroy Item?">Undo Destroy</td>
				<?endif;?>
				-->
			</tr>
		<?endforeach;?>
			<tr>
				<td colspan="4">
					<a href="<?=site_url('admin/update_grade_level')?>" class="confirm button tiny" title="Are you sure you want to edit data?">Edit data</a>
					<a href="<?=site_url('admin/add_grade_level')?>" class="confirm button tiny" title="This will take you to another page. Are you sure you want to add new grade level?">Add Grade Level</a>
				</td>
			</tr>
		</tbody>
	</table>
	</fieldset>
	<?else:?>
		<div class="panel">
		<div class="alert">No Grade Level found.</div>
		<a href="<?=site_url('admin/add_grade_level')?>" class="confirm button tiny" title="This will take you to another page. Are you sure you want to add new grade level?">Add Grade Level</a>
		</div>
	<?endif;?>
</div>